package com.aizuda.boot.modules.business.permission.service;

import com.aizuda.boot.modules.business.permission.domain.entity.MenuRoleRelEntity;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;


/**
 * Description: 业务说明
 *
 * @author  duanyao
 * @date 2021/12/29 17:07
 *
 * <pre>
 *              悟智科技
 *      Copyright (c) 2021. All Rights Reserved.
 * </pre>
 */
public interface MenuRoleRelService extends IService<MenuRoleRelEntity> {

    /**
     * 根据角色id查菜单-角色关联表id
     *
     * @param roleId 角色id
     */
    List<Long> getIdsByRoleId(Long roleId);

    /**
     * 根据角色id或菜单id删除菜单角色关联表数据
     *
     * @param roleIds 角色id或菜单id
     * @param classification 分类PC/H5/小程序等
     * @param type 0：角色id 1：菜单id
     */
    Boolean deleteByRoleIds(List<Long> roleIds, String classification,Integer type);

}